package com.atguigu.springcloud.service;

import com.atguigu.springcloud.pojo.Employee;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.Collection;
import java.util.Map;

@FeignClient("consul-provider-payment-8003")
public interface TestService {

    @GetMapping("/payment/consul")
    String getMessage();


    @GetMapping("/payment/getName")
    String getName();

    @GetMapping("/payment/list")
    Collection<Employee> list();

    @GetMapping("/payment/list1")
    Map list1();

}


